package com.lefeng.cockpit.resource.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lefeng.cockpit.common.bean.dto.resource.ResourceDTO;
import com.lefeng.cockpit.common.bean.po.resource.ResourcePO;

import java.util.List;

public interface ResourceDao {
    int insert(ResourcePO resourcePO);

    Boolean existResource(String fullName, int type);

    ResourcePO selectById(int pid);

    List<ResourcePO> queryResource(String parentFullName, int ordinal);

    void updateById(ResourcePO parentResource);

    List<ResourcePO> selectBatchIds(List<Integer> list);

    void deleteIds(Object[] needDeleteResourceIdArray);

    List<Integer> listChildren(int resourceId);

    IPage<ResourcePO> queryResourcePaging(ResourceDTO dto);

    List<ResourcePO> selectList();

}
